'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 某次PVP战斗一次性掠夺金币达到N
 * @author sundbcn@gmail.com (sun debing)
 */

var Task = function () {

};

Task.prototype.addStatic = function (static_list, earn_gold) {
    static_list.earn_gold_one_time = static_list.earn_gold_one_time || 0;
    if (static_list.earn_gold_one_time < earn_gold) {
        static_list.earn_gold_one_time = earn_gold;
    }
};

/**
 * 获取任务进度
 */
Task.prototype.getProgress = function (static_list) {
    return static_list.earn_gold_one_tim || 0;
};

module.exports = new Task();
